﻿using System.Collections.Generic;

namespace GD.VehicleManage.Data.Databese
{
    public interface IDbStore
    {
        void BackupsDatabase(List<string> list, string connectionString, string path);
        void BackupsDatabase(string db, string connectionString, string path);
        bool ConnectionTest(string connectionString);
        string CreateConnectioning(string server, string uid, string pwd, bool integratedSecurity = false, string db = "master", int connectTimeout = 15, int connectionLifetime = 0, bool pooling = true, int maxPoolSize = 100, int minPoolSize = 0, bool multipleActiveResultSets = false);
        List<ProcDAO> GetAllProcByDb(string connectionString);
        List<TableDAO> GetAllTableByDb(string connectionString);
        List<string> GetAllTableNameByDb(string connectionString);
        List<DatabaseDAO> GetAllUserDatabese(string connectionString);
        List<string> GetAllUserDatabeseName(string connectionString);
        List<ViewDAO> GetAllViewByDb(string connectionString);
        List<TableColDAO> GetTableCols(string connectionString, string tableName = null);
    }
}